	const mongoose = require('mongoose')
	//1、创建文档的结构对象
	let accountSchema = new mongoose.Schema({
		title: {
			type: String,
			require: true
		},
		time: Date,
		type: {
			type: Number,
			default: -1
		},
		account: {
			type: Number,
			require: true
		},
		remarks: String
	})
	//2、创建模型对象，用于对文档进行直接操作
	let accountModel = mongoose.model('accounts', accountSchema)
	module.exports = accountModel